{{-- resources\views\insert.blade.php --}}

@extends('index')
@section('title', $title ?? '未命名')

@section('body')
@parent

{{-- 头部 --}}
{{-- <header>
    @include('home.header')
</header> --}}

{{-- 主体 --}}
{{-- <main class="container-fluid">
    @include('admin.main')
</main> --}}
<div class="container mt-5">
    <div class="row">
        <form class="col-12" method="POST" action="/adminInsertCheck">
            @csrf
            <div class="form-group" hidden>
                <input type="text" class="form-control" id="exampleInputAid" name="aid"
                    value="" hidden>
            </div>
            <div class="form-group row">
                <div class="col-4">
                    <label>文章Aid</label>
                    <input type="text" class="form-control"
                        value="" placeholder="自动增长" disabled>
                </div>
                <div class="col-4">
                    <label for="cid">分类Cid</label>
                    <input type="text" class="form-control" name="cid"
                        value="" placeholder="默认:1" required>
                </div>
                <div class="col-4">
                    <label for="uid">用户Uid</label>
                    <input type="text" class="form-control" name="uid"
                        value="" placeholder="默认:1" disabled>
                </div>
            </div>
            <div class="form-group row">
                <div class="col-6">
                    <label for="exampleInputimg1">展示图片</label>
                    <input type="text" class="form-control" id="exampleInputimg1" name="img"
                        value="" placeholder="url地址或相对地址" required>
                </div>
                <div class="col-6">
                    <label for="exampleInputimgalt1">展示图片Alt</label>
                    <input type="text" class="form-control" id="exampleInputimgalt1" name="img_alt"
                        value="" placeholder="文本" required>
                </div>
            </div>
            <div class="form-group row col-12">
                <label for="exampleInputTitle1">标题</label>
                <input type="text" class="form-control" id="exampleInputTitle1" name="title1"
                    value="" required>
            </div>
            <div class="form-group row col-12">
                <label for="exampleInputTitle2">副标题</label>
                <input type="text" class="form-control" id="exampleInputTitle2" name="title2"
                    value="" required>
            </div>
            <div class="form-group row col-12">
                <label for="exampleTextareaContent1">内容</label><br>
                <textarea class="form-control" name="content" id="exampleTextareaContent1" cols="30" rows="10" required></textarea>
                <small id="content" class="form-text text-muted">支持MD语法.</small>
            </div>
            <div class="form-group">
                <button type="submit" class="btn btn-primary">保存并提交</button>
                <button type="button" onclick="javascript:location.replace(document.referrer);" class="btn btn-warning text-light">返回</button>
            </div>
        </form>
    </div>
</div>


@endsection